package com.gzx.qc.modular.check.controller;

import com.gzx.qc.modular.check.bo.GzxCallCheckEditBo;
import com.gzx.qc.modular.check.bo.GzxCallCheckQueryBo;
import com.gzx.qc.modular.check.service.GzxCallCheckService;
import com.gzx.qc.modular.check.vo.GzxCallCheckVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.mvc.controller.BaseController;
import vip.xiaonuo.common.pojo.CommonResult;

/**
 * @author zjt
 * @description
 * @date 2025/7/30 13:38
 */
@RestController
@RequestMapping("/qc/call/check")
public class GzxCallCheckController extends BaseController<GzxCallCheckEditBo, GzxCallCheckVo, GzxCallCheckQueryBo, GzxCallCheckService> {
    public GzxCallCheckController(GzxCallCheckService baseService) {
        super(baseService);
    }

    /**
     * 查询ASR文字
     *
     * @param callCheckEditBo
     * @return
     */
    @PostMapping("/review")
    public CommonResult<Void> review(@RequestBody GzxCallCheckEditBo callCheckEditBo) {
        baseService.review(callCheckEditBo);
        return CommonResult.ok();
    }

}
